package com.xinshujia.entity;

import com.baomidou.mybatisplus.annotation.*;
import com.google.gson.annotations.JsonAdapter;
import com.xinshujia.adapter.LocalDateTimeAdapter;

import java.time.LocalDateTime;

/**
 * *************************************
 * *   @author: 野狼上校               **
 * *   @since: 2024-07-19 14:17       **
 * *   @version: 1.0                  **
 * *************************************
 * <p>
 * 预警记录实体类
 */
@TableName("blade_alarm_record")
public class AlarmRecordEntity {
    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;
    private String deviceGuid;
    private String photoUrl;
    private String alarmDesc;
    // 预警状态
    private Integer alarmStatus;
    // 新增时间
    @TableField(fill = FieldFill.INSERT)
    @JsonAdapter(LocalDateTimeAdapter.class)
    private LocalDateTime createTime;

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public String getDeviceGuid() {
        return deviceGuid;
    }

    public void setDeviceGuid(String deviceGuid) {
        this.deviceGuid = deviceGuid;
    }

    public String getPhotoUrl() {
        return photoUrl;
    }

    public void setPhotoUrl(String photoUrl) {
        this.photoUrl = photoUrl;
    }

    public String getAlarmDesc() {
        return alarmDesc;
    }

    public void setAlarmDesc(String alarmDesc) {
        this.alarmDesc = alarmDesc;
    }

    public Integer getAlarmStatus() {
        return alarmStatus;
    }

    public void setAlarmStatus(Integer alarmStatus) {
        this.alarmStatus = alarmStatus;
    }

    public LocalDateTime getCreateTime() {
        return createTime;
    }

    public void setCreateTime(LocalDateTime createTime) {
        this.createTime = createTime;
    }
}
